
<?php use_helper('I18N') ?>

<form class="navbar-form pull-right" action="<?php echo url_for('@sf_guard_signin') ?>" method="post">
    <?php echo $form['_csrf_token']->render() ?>
    <?php echo $form->renderGlobalErrors() ?>
    <?php echo $form->renderHiddenFields() ?>

    <?php echo $form['username']->render(array('class' => 'span2', 'placeholder' => 'Username or Email ..')) ?>
    <?php echo $form['password']->render(array('class' => 'span2', 'placeholder' => 'Password ..')) ?>
    <input type="submit" class="btn" value="<?php echo __('Signin', null, 'sf_guard') ?>" />
</form> 

<?php 
/**
 *     <?php $routes = $sf_context->getRouting()->getRoutes() ?>
    <?php if (isset($routes['sf_guard_forgot_password'])): ?>
        <a href="<?php echo url_for('@sf_guard_forgot_password') ?>"><?php echo __('Forgot your password?', null, 'sf_guard') ?></a>
    <?php endif; ?>

    <?php if (isset($routes['sf_guard_register'])): ?>
        &nbsp; <a href="<?php echo url_for('@sf_guard_register') ?>"><?php echo __('Want to register?', null, 'sf_guard') ?></a>
    <?php endif; ?>
 */